﻿#ifndef MENUFORM_H
#define MENUFORM_H

#include <QWidget>
#include <QStandardItemModel>
#include <QSqlDatabase>
#include "../dbutil.h"
#include "menudialog.h"

namespace Ui {
class MenuForm;
}

class MenuForm : public QWidget
{
    Q_OBJECT

public:
    explicit MenuForm(QWidget *parent = nullptr);
    ~MenuForm();

public slots:
    void init();

private slots:
    void on_add();
    void on_edit();
    void on_delete();

private:
    Ui::MenuForm *ui;
    QStandardItemModel *m_pStandardItemModel;
};

#endif // MENUFORM_H
